package com.pharmacy.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDate;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ExpiredDrugs {

    private Integer id;
    private String name;
    private String barcode;
    private BigDecimal price;
    private Integer stock;
    private String description;
    private String image;
    private Boolean isPrescription;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate expirationDate;

    private Long categoriesId;
    private String categoryName;
}
